
function initBasePage()
{		
	function changeLanguage(code)
	{
		$.ajax({
			url: "/i18n/setlang/",
			cache: false,
			type: "POST",
			data: {language: code},
			success: function(json)
			{
				location.reload(true);
			},
			error: function(arg)
			{
				alert("Service is not available!");
			}
		});		
	}

	return  {changeLanguage: changeLanguage};
}
	
